package com.fiveflavors.suittar.gui;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import com.fiveflavors.suittar.Suittar;

public class SuittarTabChangeListener implements ChangeListener {

	private Suittar suittar = null;
	
	private boolean isMainTab = false;
	
	public SuittarTabChangeListener(Suittar suittar,boolean isMainTab) {
		this.suittar = suittar;
		this.isMainTab = isMainTab;
	}
	
	public void stateChanged(ChangeEvent e) {
		suittar.changeTab(isMainTab);
	}

}
